package com.yunshang.shoppingmall.mapper;

import com.yunshang.shoppingmall.entity.UserRank;

import java.util.List;

public interface UserRankMapper {
    int deleteByPrimaryKey(Integer rankid);

    int insert(UserRank record);

    int insertSelective(UserRank record);

    /**
     * 根据rankId查询用户等级和提成比
     * @param rankid
     * @return
     */
    UserRank selectByPrimaryKey(Integer rankid);

    int updateByPrimaryKeySelective(UserRank record);

    int updateByPrimaryKey(UserRank record);

    //查询所有的管理员
    List<UserRank> selectUserRankList();


}